package com.dl.code.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * 作者: DL代先生
 * 日期: 2021/5/28
 * 时间: 20:46
 * 内容: Shiro与springboot整合教程！
 * 描述: 这个类主要是用来进行页面跳转使用
 */
@Controller
@RequestMapping("page")
public class PageController {

    @RequestMapping("login")
    private String login(){
        return "login";
    }

    @RequestMapping("index")
    private String index(){
        return "index";
    }

    @RequestMapping("studentAdd")
    private String studentAdd(){
        return "student-add";
    }

    @RequestMapping("studentDelete")
    private String studentDelete(){
        return "student-delete";
    }

    @RequestMapping("studentSelect")
    private String studentSelect(){
        return "student-select";
    }

    @RequestMapping("studentUpdate")
    private String studentUpdate(){
        return "student-update";
    }

    @RequestMapping("unauthorized")
    private String unauthorized(){
        return "warning/unauthorized";
    }

    @RequestMapping("unLogin")
    private String unLogin(){
        return "warning/unLogin";
    }

    @RequestMapping("userNotExist")
    private String userNotExist(){
        return "warning/user-not-exist";
    }

    @RequestMapping("wrongPassword")
    private String wrongPassword(){
        return "warning/wrong-password";
    }
}
